#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>

int g_val1;
int g_val2 = 100;
int main(int argc,char* argv[], char* envp[])
{
  const char* str = "string";
  printf("constant:%p\n", str);

  printf("g_val1:%p\n", &g_val1);
  printf("g_val2:%p\n", &g_val2);
  int a;
  int b = 10;
  printf("a:%p\n", &a);
  printf("b:%p\n", &b);

  int* heap = (int*)malloc(10);
  printf("heap:%p\n", heap);

  printf("argc:%p\n",&argc);
  printf("argv:%p\n",&argv);
  printf("envp:%p\n",&envp);
  printf("env[0]:%p\n",&envp[0]);

}
